package com.liuchuanzheng.lcz_wanandroid.net.base

/**
 * @author 刘传政
 * @date 2020/6/23 09:30
 * QQ:1052374416
 * 电话:18501231486
 * 作用:默认的页数相关数值的类
 * 注意事项:
 */
class PageBean {
    var defaltPage = -1 //app默认未加载时所在页
    var serverFirstPage = 0
    var currentPage = defaltPage //当前页
    var pageSize = 20
    fun resetDefault() {
        currentPage = defaltPage
    }

    fun addCurrentPage() {
        currentPage++
    }

    fun isDefaultPage(): Boolean {
        return currentPage == defaltPage
    }
}